//模拟说话
params ["_side", "_name", "_text"];

//本地化
if(_name find "STR_TAG" == 0) then{
	_name = localize _name;
};

if(_text find "STR_TAG" == 0) then{
	_text = localize _text;
};

private ["_str"];
switch (_side) do
{
	case resistance:{_str = format["<t size = 1.0 color='#00aa00'>%1：</t><t size = 1.0 color='#ffffff'>%2</t>", _name, _text]};
	case west:{_str = format["<t size = 1.0 color='#0000aa'>%1：</t><t size = 1.0 color='#ffffff'>%2</t>", _name, _text]};
	case east:{_str = format["<t size = 1.0 color='#aa0000'>%1：</t><t size = 1.0 color='#ffffff'>%2</t>", _name, _text]};
	case civilian:{_str = format["<t size = 1.0 color='#aa00aa'>%1：</t><t size = 1.0 color='#ffffff'>%2</t>", _name, _text]};
	default {_str = format["<t size = 1.0 color='#aaaaaa'>%1：</t><t size = 1.0 color='#ffffff'>%2</t>", _name, _text]};
};

;

//titleText [_str, "PLAIN DOWN", -1, true, true];


[_str, 0, 0.8, 20, 1, 0, 73933] spawn BIS_fnc_dynamicText;